
propsage.namespace("prestige.receipt");

prestige.receipt.index = (function($, ui){
	
	function initComponents() {
//		$('#receipt-index-grid table td a.received-from').closest('td').css('text-align', 'left');
//		$('#receipt-index-grid table td.merge').css('text-align', 'left');
	}
	
	function initEventHandlers() 
	{ 
		$('table.items input:checkbox').change(onCheckBoxChange)
	}
	
	function onCheckBoxChange()
	{
		if($('table.items input:checkbox:checked').length > 0){
			$('input:submit[name="items-submit"]').addClass('green').removeAttr('disabled');
		} else {
			$('input:submit[name="items-submit"]').removeClass('green').attr("disabled", "disabled");
		}
	}
	
	$(document).ready(function(){
		initComponents();
		initEventHandlers();
	});
    
}(jQuery, propsage.ui));